.class public final Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;
.super Lcn/cheln/support/v4/view/g;


# instance fields
.field private final a:Ljava/util/ArrayList;

.field private b:Lcn/cheln/support/v4/pagerui/c;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcn/cheln/support/v4/view/g;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->a:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public final a()I
    .locals 1

    iget-object v0, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public final a(Landroid/view/View;)V
    .locals 2

    new-instance v0, Lcn/cheln/support/v4/pagerui/c;

    invoke-direct {v0, p1}, Lcn/cheln/support/v4/pagerui/c;-><init>(Landroid/view/View;)V

    iput-object v0, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->b:Lcn/cheln/support/v4/pagerui/c;

    iget-object v0, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->b:Lcn/cheln/support/v4/pagerui/c;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0}, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->b()V

    return-void
.end method

.method public final a(Landroid/view/View;I)V
    .locals 1

    check-cast p1, Lcn/cheln/support/v4/view/PagerView;

    iget-object v0, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/support/v4/pagerui/c;

    invoke-static {p0}, Lcn/cheln/support/v4/pagerui/c;->a(Lcn/cheln/support/v4/pagerui/c;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcn/cheln/support/v4/view/PagerView;->removeView(Landroid/view/View;)V

    return-void
.end method

.method public final a(Landroid/view/View;Ljava/lang/Object;)Z
    .locals 1

    if-ne p1, p2, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final b(Landroid/view/View;I)Ljava/lang/Object;
    .locals 3

    const/4 v2, 0x0

    iget-object v1, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->a:Ljava/util/ArrayList;

    invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/support/v4/pagerui/c;

    invoke-static {v1}, Lcn/cheln/support/v4/pagerui/c;->a(Lcn/cheln/support/v4/pagerui/c;)Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    move-object v0, p1

    check-cast v0, Lcn/cheln/support/v4/view/PagerView;

    move-object v1, v0

    invoke-virtual {v1}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v1

    if-lt v1, p2, :cond_0

    iget-object v1, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->a:Ljava/util/ArrayList;

    invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/support/v4/pagerui/c;

    invoke-static {v1}, Lcn/cheln/support/v4/pagerui/c;->a(Lcn/cheln/support/v4/pagerui/c;)Landroid/view/View;

    move-result-object v1

    check-cast p1, Lcn/cheln/support/v4/view/PagerView;

    iget-object v2, p0, Lcn/cheln/support/v4/pagerui/ViewPagerHelper$MPagerAdapter;->a:Ljava/util/ArrayList;

    invoke-virtual {v2, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/support/v4/pagerui/c;

    invoke-static {p0}, Lcn/cheln/support/v4/pagerui/c;->a(Lcn/cheln/support/v4/pagerui/c;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {p1, v2, p2}, Lcn/cheln/support/v4/view/PagerView;->addView(Landroid/view/View;I)V

    :goto_0
    return-object v1

    :cond_0
    move-object v1, v2

    goto :goto_0
.end method
